package syntaxtree;
import visitor.IRTreeCreator;
import visitor.Visitor;
import visitor.TypeVisitor;

public class If extends Statement {
	public Exp e;
	public Statement s1,s2;

	public If(Exp ae, Statement as1, Statement as2) {
		e=ae; s1=as1; s2=as2;
	}

	public void accept(Visitor v) {
		v.visit(this);
	}

	public Type accept(TypeVisitor v) {
		return v.visit(this);
	}

	public tree.Exp accept(IRTreeCreator v) {
		return v.visit(this);
	}

}

